<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php $this->load->view('include/html_head')?>
</head>
<body>
<div id="wrapper">
	<?php $this->load->view('include/header')?>
	<?php $this->load->view('include/menu')?>
	<div id="page">
		<div id="content">
		<?php $this->load->view('include/sub_navi')?>
			<div class="post">
			<form action="<?php echo LOGIN_PATH . $category ?>" id="login_form" class="form" method="post">
				<p class="meta"><?php echo $category_name?>登录</p>
				<div class="entry">
					<label id='error_msg'><?php echo form_error('login_error', '<div class="error">', '</div>'); ?></label>
					<ul class='login_form'>
						<li> 
						  <label class="label">用户名:</label>
						  <input name="name" id="name" class="validate[required,minSize[4],maxSize[15],custom[onlyLetterNumberWithChinese]] text-input" type="text" value='<?php echo set_value('name');?>'></input>
						  <?php echo form_error('name', '<span class="error">', '</span>'); ?>
						</li>
					
						<li> 
						  <label class="label">密&nbsp;&nbsp;&nbsp;&nbsp;码:</label>
						  <input type="password" name="password" id="password" class="validate[required,minSize[4],maxSize[10]] text-input" value=''/>
						  <?php echo form_error('password', '<span class="error">', '</span>'); ?>
						</li>
					</ul>
					<button type='submit' style='font-size: 85%;'>登录</button>&nbsp;
					<?php if ($category != TEACHER):?>
					<a class='anchor_button' href="<?php echo REGISTER_PATH ?>" style='font-size: 85%;'>注册</a>
					<?php endif;?>
				</div>
				</form>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
		<?php $this->load->view('include/side_bar')?>
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end #page -->
</div>
<?php $this->load->view('include/footer_content')?>
<?php $this->load->view('include/footer')?>
</body>
</html>
